import request from '@/utils/request'

// 查询退款记录列表
export function listRefund(query) {
  return request({
    url: '/bus/platUserRefundRecord/list',
    method: 'get',
    params: query
  })
}

// 查询退款记录详细
export function getRefund(id) {
  return request({
    url: '/bus/platUserRefundRecord/' + id,
    method: 'get'
  })
}

// 退款审核
export function updateRefund(data) {
  return request({
    url: '/bus/platUserRefundRecord',
    method: 'put',
    data: data
  })
}

// 乘车订单申请退款
export function applyOrderRefund(data) {
  return request({
    url: '/bus/platOrderPre/refund',
    method: 'post',
    data: data
  })
}
